<div id="content" class="testd"><br>
<h1><?php if($title){ echo $title; } ?></h1><br>
<a href="<?php echo site_url('user_data');?>">Back </a>
<?php 
if($resultstatus){ echo "<div id='result'>".$resultstatus."</div>"; }
 ?>
<div class="wite">
<form method="post" action="<?php echo site_url('user_data/insert_user');?>">
	<table id="formdata">
		<tr>
			<td valign="top" colspan="2"><!-- form validation errors -->
			 <?php echo validation_errors(); ?>
			 </td>
		</tr>
		<tr>
			<td valign="top">Username</td>
			<td valign="top"><input type="text" name="username" autocomplete="off"> </td>
		</tr>
	
		<tr>
			<td valign="top">First Name</td>
			<td valign="top"><input type="text" name="first_name"> </td>
		</tr>
		<tr>
			<td valign="top">Last Name</td>
			<td valign="top"><input type="text" name="last_name"> </td>
		</tr>
		<tr>
			<td valign="top">Email</td>
			<td valign="top"><input type="text" name="user_email" autocomplete="off"> </td>
		</tr>
		<tr>
			<td valign="top">Password</td>
			<td valign="top"><input type="password" name="user_password" autocomplete="off"> </td>
		</tr>
		<tr>
			<td valign="top">Confirm Password</td>
			<td valign="top"><input type="password" name="confirm_password" autocomplete="off"> </td>
		</tr>
		<tr>
			<td valign="top">Credit</td>
			<td valign="top"><input type="text" name="user_credit"> </td>
		</tr>
		<tr>
			<td valign="top">Group</td>
			<td valign="top">
				<select name="user_group">
					<?php foreach($allgroups as $key => $group){ ?>
						<option value="<?php echo $group['gid']; ?>"><?php echo $group['group_name']; ?></option>
					<?php } ?>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top">Account Type</td>
			<td valign="top">
				<select name="account_type">
					<option value="0">User</option>
					<option value="1">Administrator</option>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top"></td><td valign="top"><input type="submit" value="Submit"> </td>
		</tr>
	</table>
</form>
<br>


</div>
</div>















